<% include header.ejs %>
<div class="row">
  <div class="col-md-1">
    <a class="avatar"
       href="/posts?author=<%= user._id %>"
       data-title="<%= user.name %> | <%= ({m: '男', f: '女', x: '保密'})[user.gender] %>"
       data-content="<%= user.bio %>">
      <img class="avatar" src="/upload/img/<%= user.avatar %>">
    </a>
  </div>
  <div class="col-md-10">
    <form class="well center" method="post" action="/posts">
      <div class="form-group">
        <label class="control-label">标题</label>
        <input type="text" name="title" class="form-control" placeholder="请输入标题">
      </div>
      <div class="form-group">
        <label class="control-label">内容</label>
        <textarea class="form-control" name="content" rows="15" placeholder="请输入内容">
        </textarea>
      </div>
      <input type="submit" class="btn btn-default" value="发布">
    </form>
  </div>
  <div class="col-md-1"></div>
</div>
<% include footer.ejs %>
